package net.csdn.business.discuss.feign.api;


import net.csdn.business.discuss.common.constant.ServiceNameConstants;
import net.csdn.business.discuss.common.model.dto.SendDiscussAuditDTO;
import net.csdn.business.discuss.common.model.dto.SendDiscussCategoryAuditDTO;
import net.csdn.business.discuss.common.model.dto.SendDiscussCommentAuditDTO;
import net.csdn.business.discuss.common.model.dto.SendDiscussSectionAuditDTO;
import net.csdn.business.discuss.feign.decoder.SystemFeignErrorDecoder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Auther: zhangyalei
 * @Date: 2022/12/21 16:59
 * @Description:
 */
@FeignClient(value = ServiceNameConstants.ATOMGIT_SYSTEM_SERVICE,contextId = ServiceNameConstants.ATOMGIT_SYSTEM_AUDIT_CONTEXT_ID, configuration = SystemFeignErrorDecoder.class)
public interface AuditFeignClient {


    /**
     * @Desc: 发送讨论的分类到审核
     * @Author: zhangyalei
     * @Date: 2023/1/11 15:18
     */
    @PostMapping("/api/v1/report/sendDiscussCategoryAudit")
    public Integer sendDiscussCategoryAudit(@RequestBody SendDiscussCategoryAuditDTO params);


    /**
     * @Desc: 发送讨论的分组到审核
     * @Author: zhangyalei
     * @Date: 2023/1/11 15:18
     */
    @PostMapping("/api/v1/report/sendDiscussSectionAudit")
    public Integer sendDiscussSectionAudit(@RequestBody SendDiscussSectionAuditDTO params);

    /**
     * @Desc: 发送讨论到审核
     * @Author: zhangyalei
     * @Date: 2023/1/11 15:18
     */
    @PostMapping("/api/v1/report/sendDiscussAudit")
    public Integer sendDiscussAudit(@RequestBody SendDiscussAuditDTO params);

    /**
     * @Desc: 发送讨论的评论到审核
     * @Author: zhangyalei
     * @Date: 2023/1/11 15:18
     */
    @PostMapping("/api/v1/report/sendDiscussCommentAudit")
    public Integer sendDiscussCommentAudit(@RequestBody SendDiscussCommentAuditDTO params);
}